home *** CD-ROM | disk | FTP | other *** search
- Subject: Making PartMaker documents - a Script
- Sent: 3/8/96 12:00 PM
- Received: 3/8/96 11:21 AM
- From: Arni McKinley, motion@nbn.com
- Reply-To: ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- I recently had the occasion to create a new PartMaker document, so I
- chronicled the process. It appears below for those interested in creating
- one themselves.
-
- Instructions for Building PartMaker Documents
-
- * Obtain a copy of PartMaker 4.3 from either the old OpenDoc DR2 or 3
- release disk (I'm not sure which has it). PartMaker 4.4 won't do; it
- crashes for me when I use it.
-
- * Duplicate the document PartMaker.cust, keeping the original intact for
- later use.
- * Drop it on ATGEdit which comes in a folder in the PartMaker 4.3 folder.
- PartMaker 4.4 doesn't have it.
- * When the document opens, select "wind" item 199 and choose "Retrieve
- 'WFMT' resources" from the Resources menu; Suddenly a bunch of other
- resources will appear in the window.
-
- * Select 'cust' 'wind' item 128 and do a Cmd-T.
- * Edit the Class name to the one you want. It should match the name which
- is to be changed in every file in your project. So if your part is called
- "Stuff" and that name appears throughout the project files. then the class
- name is "Stuff". When a new part is made, this name will be replaced
- everywhere it appears in all of the project files.
- * Edit the Company Name. This should be the Company name which is used
- throughout the project. If the Company name is "CoolDudeInc", use that name
- here. When a new part is made, this name will be replaced everywhere it
- appears in all of the project files.
- * Close the window, without saving or you'll crash later.
- * Zoom the window which is now up front and see lots of controls on the
- right side.
- * Cmd-Double click on the button to the right of the one named "Old Class
- Name:". Edit the name of the button to the Class name you used above.
- * Cmd-Double click on the button to the right of the one named "Old Company
- Name:". Edit the name of the button to the Company name you used above.
- * The prefix and suffix list will be used to find all of the files which
- are to have their filenames changed to include the new Class name. Prefix
- and suffix is just what they say. Comparison with your source file names
- will give you the idea of what to type in the boxes. If you need to create
- new boxes, hold down the shift key as you drag a rubber band around a pair
- of them (they must come in pairs). You'll need to hold the shift key down
- whenever you try to pick up one of these guys to move it. Shift clicking
- works here to select bunches of them at a time. Cmd-Double click opens a
- box (really a button) for renaming. Remember the som files too!!
- If you drag without holding down the shift key, you'll make a new
- button, just delete it immediately, or shift click on it to select it, then
- delete it.
- * Once all the prefices and suffices are finished, close the windows
- without saving, back to the root item list window again.
-
- * Select 'fea1' 'wind' item 128, and do a cmd-Y. You may now edit the text
- in the Instruction box. Close the window, without saving (or you'll crash
- later).
- * Cmd-double click on the About button and edit the name of the button.
- Close the windows back to the root item list window, again without saving.
-
- * Select 'ABTD' 'wind' item 1001 and do a cmd-Y. Edit the About text. Click
- "OK"; the window closes.
- * Close the next two windows back to the root item list without saving.
-
- * Select all of the items except 'wind' 199, and choose "Separate 'WFMT'
- #128" from the Resource menu.
- * Close the window. Believe it or not, this saves everything you just did.
- * You can reopen the document as you did previously and go through it all
- again to check that it all saved properly.
-
- To Create the PartMaker document itself
- * Place the project folder on your hard drive where you would put it if you
- were to do development with it, so all of the access poaths are set up
- correctly. I honestly don't know if that is necessary, but I heard tell it
- was.
- * Remove all of the binaries in the project. Also remove all of the
- * Select the PartMaker.cust document you just create and the folder.
- * Drag them onto PartMaker 43. (not 4.4, it will not create a good doument).
- * PartMaker will grind away and spit out a file with the ClassName preceded
- by a '*'. So if your Class Name was Stuff, the document will be called
- "*Stuff".
-
- To create a new project from the document
- * Drop "*Stuff", or whatever it is onto PartMaker 4.3. It will present the
- dialog window you edited earlier complete with all of the instructional
- text and about information.
- * Change the ClassName and the Company Name.
- * It will grind away and create a project folder with the new ClassName,
- inside of which all the source, header and resource files will be rename
- with the ClassName properly. If not, then you missed a prefix or suffix and
- should add that to the editing list above. Remember the som files too!!
- * Put the project folder on your hard disk where you'll be doing
- development, so that the access paths are right. Open the new project and
- check that all of the filenames in the project are correctly changed. They
- may not be. Remove those with the old name and replace them with the
- correctly named soiurce files.
- * Open the def.h file and check that the CompanyName also changed correctly.
- * You should have a fully functioning project, duplicate to the one that
- you had, but with a new ClassName and new Company Name.
-
- Have a fun party to celebrate your new tool.
-
- Thank to Eric Soldan, Apple DTS, for ATGEdit, AppWannabe, and PartMaker
-
- Arni McKinley
- Minds In Motion Software, Inc
- motion@nbn.com
- March 8, 1996
-
-